home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Audio dcmds
/
Audio CD dcmds.sit
/
Audio CD dcmds.π
/
Think Put Lib source
/
PutCStrTo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-31
|
396b
|
21 lines
extern unsigned char __putBuffer[256];
extern short __putMark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutCStrTo(const char* s, int endpos)
{
int i = 0;
if ( endpos > __putMark )
{
while ( s[i] && __putMark < endpos )
PutChar( s[i++] );
if ( s[i] )
__putBuffer[__putMark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}